package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋核酸任务对象 sys_nucleic_acid_task
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
public class SysNucleicAcidTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小区 */
    @Excel(name = "小区")
    private Long community;

    /** 楼栋 */
    @Excel(name = "楼栋")
    private Long building;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String task;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outtime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String places;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Integer total;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Integer complete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommunity(Long community) 
    {
        this.community = community;
    }

    public Long getCommunity() 
    {
        return community;
    }
    public void setBuilding(Long building) 
    {
        this.building = building;
    }

    public Long getBuilding() 
    {
        return building;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setOuttime(Date outtime) 
    {
        this.outtime = outtime;
    }

    public Date getOuttime() 
    {
        return outtime;
    }
    public void setPlaces(String places) 
    {
        this.places = places;
    }

    public String getPlaces() 
    {
        return places;
    }
    public void setTotal(Integer total) 
    {
        this.total = total;
    }

    public Integer getTotal() 
    {
        return total;
    }
    public void setComplete(Integer complete) 
    {
        this.complete = complete;
    }

    public Integer getComplete() 
    {
        return complete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("community", getCommunity())
            .append("building", getBuilding())
            .append("task", getTask())
            .append("state", getState())
            .append("starttime", getStarttime())
            .append("outtime", getOuttime())
            .append("places", getPlaces())
            .append("total", getTotal())
            .append("complete", getComplete())
            .toString();
    }
}
